package com.example.homework_5_2;

import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.Query;
import androidx.room.Update;

import java.util.List;

@Dao
public interface DataDao {

    @Insert
    void insertDataOne(Data data);

    @Insert
    void insertDataMore(Data... data);

    @Delete
    int deleteDataMore(Data... data);

    @Update
    int updateData(Data... data);

    @Query("select * from user_data")
    List<Data> get_data();

    @Query("delete from user_data")
    void deleteData();

}
